package com.hbpu.encap.homework02;

public class Homework03 {
    public static void main(String[] args) {
        A a = new A();
        a.test();
    }
}

class A {
    private String name = "heihei";
    public void test() {
        class B {
            private String name = "haha";

            public void show() {
                System.out.println("局部内部类："+name + " 外部类：" + A.this.name);
            }
        }
        B b = new B();
        b.show();
    }

}
